public class tiHuanKongGe {
    static class Solution {
        public String replaceSpace(String s) {
            return s.replace(" ", "%20");
        }
    }

    public static void main(String[] args) {

        String s = new Solution().replaceSpace("We are happy.");
        System.out.println(s);

    }
}
